<!DOCTYPE html>
<HTML xmlns:th="https://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>登录</h1>
<div th:if="${param.failure}">
    错误的用户名和密码
</div>
<form  th:action="@{/login}" method="post">
    <div>
        <input type="text" placeholder="用户名" name="username">
    </div>
    <div>
        <input type="password" placeholder="用户密码" name="password">
    </div>
    <input type="submit" value="登录">
</form>
</body>
</html>